#!/usr/bin/python
# -*- coding: utf-8 -*-

'''
Created on 2012-3-26

@author: lyj
'''

import traceback

def fifths(a):
    return 5/a

def myfunction(value):
    b = fifths(value) * 100

try:
    print myfunction(0)
except Exception, ex:
    logfile = open('mylog.log', 'a')
    traceback.print_exc(file=logfile)
    logfile.close()
    print 'Oops! Something went wrong. Please look in then log file.'
    
if __name__ == '__main__':
    pass